package org.example.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
 * @className: MQUtils
 * @author: chentao
 * @date: 2025/7/2 8:32
 * @Version: 1.0
 * @description:
 */
public class MQUtils {

    public static Logger logger = LoggerFactory.getLogger(MQUtils.class);

    public static void send(IMQ mq) {
        logger.warn("mq send :" + mq.getDestination() + " text: " + mq.getText());
    }

    public interface IMQ {

        public String getDestination();

        public String getText();
    }
}
